<template>
  <div class="item">
    <span class="iconfont" :class="icon" :style="{ color: iconColor }"></span>
    <div>
      <h2>{{ title }}</h2>
      <p>{{ price | formatNumber }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ["title", "price", "icon", "iconColor"],
};
</script>

<style lang="less" scoped>
.item {
  width: 24%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: #fff;
  span {
    font-size: 50px;
  }
  h2 {
    font-size: 30px;
    font-weight: normal;
    color: #ccc;
  }
  p {
    font-size: 30px;
    font-weight: bold;
  }
}

@media screen and (max-width: 1100px) {
  h2 {
    font-size: 16px;
  }
  p{
    font-size: 16px;
  }
}

</style>